package band.wukong.practice.springboot.spring4.basic.event;

import org.springframework.context.ApplicationEvent;

/**
 * @author wukong(wukonggg@139.com)
 */
public class SomeEvent extends ApplicationEvent {

    private String message;

    public SomeEvent(Object source, String msg) {
        super(source);
        message = msg;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "SomeEvent{" +
                "message='" + message + '\'' +
                '}';
    }
}
